home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 19
/
Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso
/
Aminet
/
comm
/
cnet
/
cnet_wof.lha
/
wof.lha
/
support.lha
/
Maint
< prev
next >
Wrap
Text File
|
1997-04-17
|
14KB
|
189 lines
/**************************************************************************\
$VER: Wheel of Fortune MAINTENANCE, v6.51 (17-Apr-97) by Dotoran!
\**************************************************************************/
options results;signal on SYNTAX;signal on ERROR;signal on IOERR
a=sourceline(2);parse var a . ", "ver" ("vdate")" .
tr=transmit;se=sendstring;gc=getchar;gu=getuser;gs=getscratch;mg=maygetchar
parse source . . fp .;df=left(fp,max(lastpos('/',fp),lastpos(':',fp)))
call GETCONFIG;changewhere "WOF Maintenance"
MAINT:;tr 'f1n1Cc9ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»'
tr 'Cc9ºcc>X<>X<cfr1 The Wheel of Fortune Maintenance Menu r0cc>X<>X<c9º';tr 'Cc9ºCº'
tr 'Cc9ºCcf[caCcf]caonfigure cbWheel of FortuneCc9º';tr 'Cc9ºCº'
tr 'Cc9ºCcf[ceWcf]ceeed the cbWOF cePlayers FileCc9º';tr 'Cc9ºCº'
tr 'Cc9ºCcf[caRcf]caeset the cbWheel of FortuneCc9º';tr 'Cc9ºCº';if reg=1 then do
tr 'Cc9ºCcf[ce1cf] ceRegistered cbWOF ceGame EditorCc9º'
tr 'Cc9ºCcf[ca2cf] caRegistered cbWOF caReg Graphic Editor c9º'
tr 'Cc9ºCcf[ce3cf] ceRegistered cbWOF cePuzzle EditorCc9º'
tr 'Cc9ºCcf[ca4cf] caRegistered cbWOF caColor EditorCc9º'
tr 'Cc9ºCcf[ce5cf] ceRegistered cbWOF ceHistory EditorCc9º';tr 'Cc9ºCº';end;if reg=0 then do
tr 'Cc9ºCcf[ceVcf]ceiew Registered Screen ShotsCc9º';tr 'Cc9ºCº';end
tr 'Cc9ºCcf[cdQcf]cduit this Maintenance MenuCc9º'
tr 'Cc9ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼn1'
se 'CcbMaintc9: cf>>>--caCcf,ceWcf,caRcf,cdQcf--> ';gc;a=index('CWRVQ12345',result)
if a=5 | a=0 | (reg=0 & a>5) | (reg=1 & a=4) then do;tr 'cdQuit';exit;end
if a=1 then do;tr "caConfigure#0"dfile"Config}";changewhere "WOF Maintenance";signal MAINT;end
if a=2 then do;tr 'ceWeedf1';signal WEEDPLAYERS;end;if a=3 then do;tr 'caResetn1';signal RESET;end
if a=4 & reg=0 then do;tr "ceView Screens#0"dfile"Incentive/SysOpReg}";changewhere "WOF Maintenance";signal MAINT;end
if a=6 & reg=1 then do;tr "ceGameEditor#0"rfile"GameEditor}";changewhere "WOF Maintenance";signal MAINT;end
if a=7 & reg=1 then do;tr "caRegGraphicEditor#0"rfile"RegGraphicEditor}";changewhere "WOF Maintenance";signal MAINT;end
if a=8 & reg=1 then do;tr "cePuzzleEditor#0"rfile"PuzzleEditor}";changewhere "WOF Maintenance";signal MAINT;end
if a=9 & reg=1 then do;tr "caColorEditor#0"rfile"ColorEditor}";changewhere "WOF Maintenance";signal MAINT;end
if a=10& reg=1 then do;tr "caHistoryEditor#0"rfile"HistoryEditor}";changewhere "WOF Maintenance";signal MAINT;end
WEEDPLAYERS:;tr 'cc>X<>X<cfr1 Weed Wheel of Fortune Players File r0cc>X<>X<n1'
tr 'c6Choose from these possible c9weed c6parameters:n1'
tr '>4ca1cb> caAll players who have NEVER WON a game.'
tr '>4ce2cb> ceAll players who have won a TOTAL of $0 bucks.'
tr '>4ca3cb> caAll players who were INACTIVE for the PAST 10 GAMES.'
tr '>4ce4cb> ceNEVER WON a game AND a total of $0 bucks.'
tr '>4ca5cb> caNEVER WON a game AND were INACTIVE in PAST 10 GAMES.'
tr '>4ce6cb> ceWON a total of $0 bucks AND were INACTIVE in PAST 10 GAMES.'
tr '>4ca7cb> caNEVER WON a game OR money, AND were INACTIVE in PAST 10 GAMES.n1'
se 'c9Weed c6users using cfwhich c6parameters? c7[c9Abortc7]c6: ca';gc;p=index('1234567',result)
if p=0 then do;tr 'c9Abort';signal MAINT;end;else tr p'n1'
call open(f1,tfile"GameData","r");puz=readln(f1);call close(f1)
call open(f1,tfile"Players","r");do i=1 until eof(f1);p.i=readln(f1)
end i;tot=i-1;call close(f1);d=0;call open(f1,tfile"Players","w")
do i=1 to tot;a='';parse var p.i h"|"tw"|"tm"|"cp"|"j
if p=1 & tw>0 then a=p.i;if p=2 & tm>0 then a=p.i
if p=3 & cp>puz-10 then a=p.i;if p=4 & tw>0 & tm>0 then a=p.i
if p=5 & tw>0 & cp>puz-10 then a=p.i;if p=6 & tm>0 & cp>puz-10 then a=p.i
if p=7 & tw>0 & tm>0 & cp>puz-10 then a=p.i;if a~='' then call writeln(f1,a)
else do;co="a";if d//2=0 then co="e";tr "c9Deletedc6: c"co||h;d=d+1;end
end i;call close(f1);if d=0 then tr 'cbr1 NO PLAYERS DELETED r0n1'
else tr "n1caTotal c6ofc9: cd"d" cePlayers c9Deletedc6!n1"
tr 'c7Press cdAny c7Keyc6...g1'
signal MAINT
RESET:;se 'Cc6Do a c7[caCc7]caompletec6, or c7[cbPc7]cbartial c6Reset? c7[c9Abortc7]c6: '
gc;a=index('CP',result);if a=0 then do;tr 'c9Abort';signal MAINT;end
if a=1 then do;tr 'caCompletef1'
tr 'cc>X<>X<cfr1 Complete Wheel of Fortune Reset r0cc>X<>X<n1'
tr 'c6The following cbfiles c6will be c9deletedc6:n1'
tr 'CcaGameData c7>>--> caInfo on Current Game being Played.'
tr 'CceLastPlayer cf>>--> ceInfo on the Last Player of Game.'
tr 'CcaLastReset c7>>--> caDate/Handle of Last Game Reset.'
tr 'CcePlayers cf>>--> ceData file on ALL WOF Players.'
tr 'CcaWinner c7>>--> caInfo on Winner of the LAST Game.'
tr 'CceWinners cf>>--> ceInfo on the LAST 20 Winners.'
tr 'CcaBWinner c7>>--> caInfo on Winner of LAST BONUS Game.'
tr 'CceBWinners cf>>--> ceInfo on LAST 20 BONUS Winners.'
tr 'CcaLog.NEW.#? c7>>--> caEvents that occurred during THIS Game.'
tr 'CceLog.OLD.#? cf>>--> ceEvents that occurred during LAST Game.'
tr 'CcaStats c7>>--> caInfo on the HIGH SCORES obtained.'
tr 'CceMillionaires cf>>--> ceInfo on Regular Millionaires.'
tr 'CcaBMillionaires c7>>--> caInfo on Bonus Round Millionaires.'
tr 'CceBankers cf>>--> ceInfo on Best WOF Players.n1'
se 'c6Are you cbSURE c6you want to do this? c7[caNoc7]c6: ca'
gc;a=result;if a~='Y' then do;tr 'No.';signal MAINT;end
tr 'Yes!n2cbResetting caCOMPLETE c6Game...n1'
se 'c9Deleting cb"caGameDatacb"c6.......file...'
if exists(tfile"GameData") then address command "delete "tfile"GameData";tr 'cdDonec6.'
se 'c9Deleting cb"caPlayerscb"c6........file...'
if exists(tfile"Players") then address command "delete "tfile"Players";tr 'cdDonec6.'
se 'c9Deleting cb"caLastPlayercb"c6.....file...'
if exists(tfile"LastPlayer") then address command "delete "tfile"LastPlayer";tr 'cdDonec6.'
se 'c9Deleting cb"caLastResetcb"c6......file...'
if exists(tfile"LastReset") then address command "delete "tfile"LastReset";tr 'cdDonec6.'
se 'c9Deleting cb"caWinnercb"c6.........file...'
if exists(tfile"Winner") then address command "delete "tfile"Winner";tr 'cdDonec6.'
se 'c9Deleting cb"caWinnerscb"c6........file...'
if exists(tfile"Winners") then address command "delete "tfile"Winners";tr 'cdDonec6.'
se 'c9Deleting cb"caBWinnercb"c6........file...'
if exists(tfile"BWinner") then address command "delete "tfile"Bwinner";tr 'cdDonec6.'
se 'c9Deleting cb"caBWinnerscb"c6.......file...'
if exists(tfile"BWinners") then address command "delete "tfile"BWinners";tr 'cdDonec6.'
se 'c9Deleting cb"caLog.NEW.ASCcb"c6....file...'
if exists(tfile"Log.NEW.ASC") then address command "delete "tfile"Log.NEW.ASC";tr 'cdDonec6.'
se 'c9Deleting cb"caLog.NEW.ANScb"c6....file...'
if exists(tfile"Log.NEW.ANS") then address command "delete "tfile"Log.NEW.ANS";tr 'cdDonec6.'
se 'c9Deleting cb"caLog.NEW.IBMcb"c6....file...'
if exists(tfile"Log.NEW.IBM") then address command "delete "tfile"Log.NEW.IBM";tr 'cdDonec6.'
se 'c9Deleting cb"caLog.OLD.ASCcb"c6....file...'
if exists(tfile"Log.OLD.ASC") then address command "delete "tfile"Log.OLD.ASC";tr 'cdDonec6.'
se 'c9Deleting cb"caLog.OLD.ANScb"c6....file...'
if exists(tfile"Log.OLD.ANS") then address command "delete "tfile"Log.OLD.ANS";tr 'cdDonec6.'
se 'c9Deleting cb"caLog.OLD.IBMcb"c6....file...'
if exists(tfile"Log.OLD.IBM") then address command "delete "tfile"Log.OLD.IBM";tr 'cdDonec6.'
se 'c9Deleting cb"caStatscb"c6..........file...'
if exists(tfile"Stats") then address command "delete "tfile"Stats";tr 'cdDonec6.'
se 'c9Deleting cb"caMillionairescb"c6...file...'
if exists(tfile"Millionaires") then address command "delete "tfile"Millionaires";tr 'cdDonec6.'
se 'c9Deleting cb"caBMillionairescb"c6..file...'
if exists(tfile"BMillionaires") then address command "delete "tfile"BMillionaires";tr 'cdDonec6.'
se 'c9Deleting cb"caBankerscb"c6........file...'
if exists(tfile"Bankers") then address command "delete "tfile"Bankers";tr 'cdDonec6.n1'
tr "cbWheel of Fortunec6, cf"ver" c6has been caCOMPLETELY cbResetc6!n1"
se 'Simply enter one of the ceGame Modules c6to cfSTART c6a c9NEW c6Game!'
exit;end
if a=2 then do;tr 'cbPartialf1'
tr 'cc>X<>X<cfr1 Partial Wheel of Fortune Reset r0cc>X<>X<n1'
se 'c9Delete cb"caGameDatacb"c6.......file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"GameData") then address command "delete "tfile"GameData"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caPlayerscb"c6........file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"Players") then address command "delete "tfile"Players"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caLastPlayercb"c6.....file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"LastPlayer") then address command "delete "tfile"LastPlayer"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caLastResetcb"c6......file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"LastReset") then address command "delete "tfile"LastReset"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caWinnercb"c6.........file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"Winner") then address command "delete "tfile"Winner"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caWinnerscb"c6........file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"Winners") then address command "delete "tfile"Winners"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caBWinnercb"c6........file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"BWinner") then address command "delete "tfile"BWinner"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caBWinnerscb"c6.......file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"BWinners") then address command "delete "tfile"BWinners"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caLog.NEW.#?cb"c6....files? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!'
if exists(tfile"Log.NEW.ASC") then address command "delete "tfile"Log.NEW.ASC"
if exists(tfile"Log.NEW.ANS") then address command "delete "tfile"Log.NEW.ANS"
if exists(tfile"Log.NEW.IBM") then address command "delete "tfile"Log.NEW.IBM"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caLog.OLD.#?cb"c6....files? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!'
if exists(tfile"Log.OLD.ASC") then address command "delete "tfile"Log.OLD.ASC"
if exists(tfile"Log.OLD.ANS") then address command "delete "tfile"Log.OLD.ANS"
if exists(tfile"Log.OLD.IBM") then address command "delete "tfile"Log.OLD.IBM"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caStatscb"c6..........file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"Stats") then address command "delete "tfile"Stats"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caMillionairescb"c6...file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"Millionaires") then address command "delete "tfile"Millionaires"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caBMillionairescb"c6..file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"BMillionaires") then address command "delete "tfile"BMillionaires"
tr ' cdDonec6.';end;else tr 'No.'
se 'c9Delete cb"caBankerscb"c6........file? c7[ceNoc7]c6: ce';gc;a=result
if a='Y' then do;se 'Yes!';if exists(tfile"Bankers") then address command "delete "tfile"Bankers"
tr ' cdDonec6.';end;else tr 'No.'
if ~exists(tfile"GameData") | ~exists(tfile"Players") then do
se 'n1c6For cfsafety c6reasons, we must now c9EXIT c6the file. Simply enter '
se 'one of the ceGame Modules c6to cabind c6any changes made here...';end
exit;end
GETCONFIG:
dfile=df;rfile=dfile"Registered/";tfile=dfile"Texts/"
call open(f1,dfile"!Settings","r")
v=readln(f1);parse var v j ver vdate;j=readln(f1)
call close(f1);reg=exists(rfile"Reg.Key");return
SYNTAX:;ERROR:;IOERR:;e1="n1 Error: "rc" ("errortext(rc)")"
e2=" Line: "left(sigl,4)"File:";c="`"fp", "ver"'";e2=e2" "c;tr e1;tr e2
logentry e1;logentry e2;e=strip(translate(sourceline(sigl),"\{",""))
do while e~="";e3="Source: "left(e,37);tr e3;logentry e3;e=substr(e,38);end
bufferflush
/**************************************************************************\
\****************************************** Frontiers BBS (716)/823-9892 **/